package com.stefanini.pe.bbva.bp.in.dao.impl;

import java.util.HashMap;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.ibatis.support.SqlMapClientDaoSupport;
import org.springframework.stereotype.Repository;

import com.ibatis.sqlmap.client.SqlMapClient;
import com.stefanini.pe.bbva.bp.in.bo.iface.PerfilBOIface;
import com.stefanini.pe.bbva.bp.in.dao.iface.PerfilDAOIface;

@Repository("perfilDAOIface")
public class PerfilDAOImpl extends SqlMapClientDaoSupport implements
		PerfilDAOIface {

	@Autowired
	public PerfilDAOImpl(SqlMapClient sqlMapClient) {
		setSqlMapClient(sqlMapClient);
	}

	public List listarPerfilesCmb() throws Exception{
		HashMap map = new HashMap();
		getSqlMapClientTemplate().queryForList(
				"BP_PERFIL_SqlMap.listarPerfilesCmb", map);
		return (List) map.get("result");
	}
}
